package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author Lbx
 * @since 2021-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "FormatLiveRecord对象", description = "VIEW")
public class FormatLiveRecord extends Model<FormatLiveRecord> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "头像")
    private String headImg;

    @ApiModelProperty(value = "赛事描述")
    private String description;

    @ApiModelProperty(value = "是否裁判")
    private Integer isJudge;

    private Integer userId;

    @ApiModelProperty(value = "机构名称")
    private String thirdName;

    @ApiModelProperty(value = "进行顺序")
    private Integer arrangeOrder;

    private Integer id;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "1个人2团队")
    @TableField(exist = false)
    private Integer matchGroup;

    @ApiModelProperty(value = "团队名称")
    @TableField(exist = false)
    private String groupName;

    @ApiModelProperty(value = "主播id")
    private Integer liveId;

    @ApiModelProperty(value = "赛程id")
    private Integer arrangeId;

    @ApiModelProperty(value = "直播标题")
    private String title;

    @ApiModelProperty(value = "直播图片")
    private String liveLogo;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "赛事分类")
    private Integer matchType;

    @ApiModelProperty(value = "flv播放地址")
    private String flvPullUrl;

    @ApiModelProperty(value = "m3u8播放地址")
    private String m3u8PullUrl;

    @ApiModelProperty(value = "rtmp播放地址")
    private String rtmpPullUrl;

    @ApiModelProperty(value = "udp播放地址")
    private String udpPullUrl;

    @ApiModelProperty(value = "直播回放地址")
    private String videoUrl;

    @ApiModelProperty(value = "开始时间")
    private Date matchStartTime;

    @ApiModelProperty(value = "结束时间")
    private Date matchEndTime;

    @ApiModelProperty(value = "观看人数")
    private Long viewCount;

    @ApiModelProperty(value = "主播类型(1普通主播2赛事主播)")
    private Integer type;

    @ApiModelProperty(value = "1 裁判/解说员  2赛场助理")
    private Integer role;

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
